<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Library_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-library_id" data-rule="required" data-source="exchange/library/index" class="form-control selectpage" name="row[library_id]" type="text" value="">
        </div>
    </div>
   
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" data-rule="required" class="form-control" name="row[num]" type="number" value="1" oninput="if(value>1000)value=1000;if(value.length>4)value=value.slice(0,4);if(value<1)value=1">
            <div style="color: rgb(153, 153, 153); font-size: 12px;">单次最多同时生成1000条</div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
